package io.renren.service;

import io.renren.common.utils.PageUtils;
import io.renren.entity.CtocTransactionEntity;
import io.renren.entity.MemberEntity;

import java.util.Map;

import com.baomidou.mybatisplus.service.IService;

/**
 * ctoc交易表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-04-14 14:11:21
 */
public interface CtocTransactionService extends IService<CtocTransactionEntity> {

	PageUtils queryPage(Map<String, Object> params);

	/**
	 * 卖家下单
	 * 
	 * @param seller
	 * @param orderId
	 */
	void sell(MemberEntity seller, Long orderId);

	/**
	 * 取消交易
	 * 
	 * @param buyer
	 * @param transId
	 */
	void cancelTrans(MemberEntity buyer, Long transId);

	/**
	 * 卖家确认收款
	 * 
	 * @param seller
	 * @param transId
	 */
	void sellerConfirm(MemberEntity seller, Long transId);
}
